import type * as T from './type'
import http from '@/utils/http'

export type * from './type'

const BASE_URL = '/system/holidaySetting'

/** @desc 查询菜单列表 */
export function listHolidaySettingByYear(year: string) {
  return http.get<any>(`${BASE_URL}/list/${year}`)
}


/** @desc 更新或插入假期设置 */
export function insertHolidaySetting(data: any) {
  return http.post<any>(`${BASE_URL}/holiday-date`, data)
}

